package clm.logmerge.nio;

import java.io.Serializable;
import java.util.Date;

public class LineDTO implements Serializable {
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Date lineDate = new Date();
	private String lineText = null;
	private int readOrder = 0;
	private int fileReference = 0;
	private long linePointer = 0;
	private long lineBytes = 0;
	
	public Date getLineDate() {
		return lineDate;
	}
	public void setLineDate(Date lineDate) {
		this.lineDate = lineDate;
	}
	public String getLineText() {
		return lineText;
	}
	public void setLineText(String lineText) {
		this.lineText = lineText;
	}
	public int getReadOrder() {
		return readOrder;
	}
	public void setReadOrder(int readOrder) {
		this.readOrder = readOrder;
	}
	public long getLinePointer() {
		return linePointer;
	}
	public void setLinePointer(long linePointer) {
		this.linePointer = linePointer;
	}
	public int getFileReference() {
		return fileReference;
	}
	public void setFileReference(int fileReference) {
		this.fileReference = fileReference;
	}
	@Override
	public String toString() {
		StringBuffer strBuf = new StringBuffer();
		
		strBuf.append("Date: ");
		strBuf.append(lineDate);
		strBuf.append(" Order: ");
		strBuf.append(readOrder);
		strBuf.append(" File: ");
		strBuf.append(fileReference);
		strBuf.append(" Pointer: ");
		strBuf.append(linePointer);
		strBuf.append(" Bytes: ");
		strBuf.append(lineBytes);
		strBuf.append(" Text: ");
		strBuf.append(lineText);		
		
		return strBuf.toString();
	}
	public long getLineBytes() {
		return lineBytes;
	}
	public void setLineBytes(long lineBytes) {
		this.lineBytes = lineBytes;
	}
}
